/* ============================================================
   CORYNTH LABS — Site Styles
   Extends colors_and_type.css (design tokens).
   ============================================================ */

* { box-sizing: border-box; }
html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-body);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

/* ============================================================
   HEADER
   Absolute over hero, transparent. Becomes sticky blurred after scroll.
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition:
        background-color var(--dur-base) var(--ease-out),
        border-color var(--dur-base) var(--ease-out),
        backdrop-filter var(--dur-base) var(--ease-out);
}

.site-header.scrolled {
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--border);
}

.site-header__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.01em;
    color: var(--fg);
}

.brand__mark {
    width: 18px;
    height: 18px;
    display: block;
}

.nav {
    display: flex;
    gap: 36px;
}

.nav a {
    position: relative;
    font-size: 13.5px;
    color: var(--fg-secondary);
    padding: 6px 0;
    transition: color var(--dur-fast) var(--ease-out);
}

.nav a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: var(--accent);
    opacity: 0;
    transition: opacity var(--dur-fast) var(--ease-out);
}

.nav a:hover { color: var(--fg); }
.nav a:hover::after,
.nav a.active::after { opacity: 1; }

.site-header__auth {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: transparent;
    color: var(--fg-secondary);
    transition:
        border-color var(--dur-base) var(--ease-out),
        color var(--dur-base) var(--ease-out);
}

.icon-btn:hover {
    border-color: var(--border-strong);
    color: var(--fg);
}

/* ============================================================
   HERO
   Full-bleed video with gradient overlay. Text sits top-left area.
   ============================================================ */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 640px;
    overflow: hidden;
}

.hero__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.92) 0%,
        rgba(0, 0, 0, 0.75) 20%,
        rgba(0, 0, 0, 0.3) 45%,
        rgba(0, 0, 0, 0) 70%
    );
}

.hero__content {
    position: relative;
    z-index: 3;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 180px var(--container-pad) 0;
}

.hero__eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--fg-secondary);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hero__eyebrow::before {
    content: '';
    width: 18px;
    height: 1px;
    background: rgba(245, 245, 247, 0.55);
}

.hero__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: var(--fg);
    margin: 0 0 20px;
    max-width: 640px;
}

.hero__desc {
    font-size: 18px;
    color: var(--fg-secondary);
    line-height: 1.5;
    max-width: 460px;
    margin: 0 0 36px;
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    border: none;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--dur-base) var(--ease-out);
}

.btn--primary-pill {
    background: var(--fg);
    color: #000;
    padding: 14px 28px;
    border-radius: var(--r-pill);
    font-size: 15px;
}

.btn--primary-pill:hover {
    background: #FFFFFF;
    transform: translateY(-1px);
}

.btn--primary-pill:active {
    transform: translateY(0);
    transition-duration: 60ms;
}

.btn--ghost {
    background: transparent;
    color: var(--fg);
    border: 1px solid var(--border-strong);
    padding: 12px 22px;
    border-radius: var(--r-4);
    font-size: 14px;
    font-weight: 500;
}

.btn--ghost:hover {
    border-color: var(--fg-muted);
    color: var(--fg);
}

.btn--accent {
    background: var(--accent);
    color: #000;
    padding: 10px 18px;
    border-radius: var(--r-4);
    font-size: 13.5px;
}

.btn--accent:hover { background: #FFFFFF; }

.btn--text {
    background: transparent;
    color: var(--fg-muted);
    padding: 10px 0;
    font-size: 14px;
    font-weight: 500;
}

.btn--text:hover { color: var(--fg); }

/* ============================================================
   SECTION SCAFFOLDING
   ============================================================ */
.section {
    padding: 96px 0;
    position: relative;
}

.section--lifted {
    background: var(--bg-lifted);
}

.section-head {
    margin-bottom: 48px;
}

.section-head--center {
    text-align: center;
}

.section-eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--fg-secondary);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.section-eyebrow::before {
    content: '';
    width: 18px;
    height: 1px;
    background: rgba(245, 245, 247, 0.45);
}

.section-eyebrow--center { justify-content: center; }

.section-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--fg);
    margin: 0 0 12px;
    max-width: 720px;
}

.section-title--center { margin: 0 auto 12px; }

.section-desc {
    font-size: 16px;
    color: var(--fg-muted);
    line-height: 1.5;
    max-width: 580px;
    margin: 0;
}

.section-desc--center { margin: 0 auto; }

/* ============================================================
   PRODUCT CARDS
   Uses real photo-based vial images (500x500 PNGs with labels).
   ============================================================ */
.products__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 32px;
}

.products__nav {
    display: flex;
    gap: 8px;
}

.products__nav button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--fg-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--dur-base) var(--ease-out);
}

.products__nav button:hover {
    border-color: var(--border-strong);
    color: var(--fg);
}

.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--c-ink-2);
    border: 1px solid var(--border);
    border-radius: var(--r-4);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition:
        transform var(--dur-base) var(--ease-out),
        border-color var(--dur-base) var(--ease-out);
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
}

.product-card__image {
    /* White backdrop inside the dark card chrome — the only white surface
       in the system, used specifically for product-card thumbnails. */
    background: #FFFFFF;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-card__image-vial {
    /* The actual vial PNG (500x500, label composited, white bg).
       Fill the panel; since the source is square + the panel is square,
       it sits flush with no gaps. Transparent areas of the PNG reveal the
       white panel underneath. */
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-card__image-code {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    font-family: var(--font-mono);
    font-size: 10px;
    color: #8A8A90;
    letter-spacing: 0.14em;
    /* Faint rounded background so the code reads on white */
    background: rgba(255, 255, 255, 0.85);
    padding: 4px 8px;
    border-radius: 3px;
    backdrop-filter: blur(4px);
}

.product-card__foot {
    background: var(--c-ink-2);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
}

.product-card__name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.product-card__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    /* Green in-stock indicator, matches the cap green on the vials */
    background: #3FA96C;
    flex: 0 0 auto;
}

.product-card__name {
    font-weight: 600;
    font-size: 14px;
    color: var(--fg);
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card__price {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--fg);
    flex: 0 0 auto;
}

/* ============================================================
   COMPARE SECTION ("Why researchers choose Corynth")
   ============================================================ */
.compare-wrap {
    background: #0C0C0E;
    border: 1px solid var(--border);
    border-radius: var(--r-4);
    padding: 64px 56px 48px;
    position: relative;
    overflow: hidden;
}

.compare-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.025) 0%,
        transparent 30%,
        transparent 100%
    );
    z-index: 0;
}

.compare-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.35;
    mix-blend-mode: overlay;
    background-image: radial-gradient(
        circle at 1px 1px,
        rgba(255, 255, 255, 0.05) 1px,
        transparent 1.2px
    );
    background-size: 3px 3px;
    z-index: 0;
}

.compare {
    position: relative;
    z-index: 1;
}

.compare__head {
    display: grid;
    grid-template-columns: 1.2fr 1.6fr 1.6fr;
    gap: 24px;
    padding: 0 0 18px;
    border-bottom: 1px solid var(--c-line-faint);
    align-items: end;
}

.compare__col-label {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    color: var(--fg-muted);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.compare__col-label--us { color: var(--fg); }

.compare__row {
    display: grid;
    grid-template-columns: 1.2fr 1.6fr 1.6fr;
    gap: 24px;
    padding: 22px 0;
    border-bottom: 1px solid var(--c-line-faint);
    align-items: center;
}

.compare__row:last-child { border-bottom: none; }

.compare__metric {
    font-size: 14px;
    font-weight: 500;
    color: var(--fg);
    letter-spacing: -0.005em;
}

.compare__cell {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.compare__cell--us { color: var(--fg); }
.compare__cell--them { color: var(--fg-muted); }

.compare__icon {
    flex: 0 0 auto;
    margin-top: 1px;
}

.compare__cell--us .compare__icon { color: var(--fg); }
.compare__cell--them .compare__icon { color: var(--c-fg-3); }

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 28px 0;
}

.trust-strip__item {
    padding: 0 24px;
    border-right: 1px solid var(--c-line-faint);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.trust-strip__item:last-child { border-right: none; }

.trust-strip__label {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--fg-muted);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.trust-strip__value {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 22px;
    color: var(--fg);
    letter-spacing: -0.015em;
}

.trust-strip__sub {
    font-size: 12.5px;
    color: var(--fg-muted);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 40px 0 32px;
}

.site-footer__row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 24px;
    align-items: center;
}

.site-footer__brand {
    color: var(--fg);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: 0.14em;
}

.site-footer__disclaimer {
    text-align: center;
    color: var(--fg-muted);
    font-size: 12.5px;
    letter-spacing: 0.01em;
}

.site-footer__links {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    font-size: 12.5px;
    color: var(--fg-secondary);
}

.site-footer__links a:hover { color: var(--fg); }

.site-footer__copy {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--c-line-faint);
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--c-fg-3);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    :root { --container-pad: 32px; }

    .products { grid-template-columns: repeat(2, 1fr); }

    .trust-strip { grid-template-columns: repeat(2, 1fr); }
    .trust-strip__item:nth-child(2) { border-right: none; }

    .compare__head,
    .compare__row { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 720px) {
    :root { --container-pad: 20px; }

    .nav { display: none; }

    .hero__content { padding-top: 140px; }
    .hero__title { font-size: 2.25rem; }
    .hero__desc { font-size: 16px; }

    .section { padding: 64px 0; }

    .compare-wrap { padding: 40px 24px 28px; }
    .compare__head,
    .compare__row {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 16px 0;
    }
    .compare__metric {
        font-size: 13px;
        color: var(--fg-muted);
        text-transform: uppercase;
        letter-spacing: 0.1em;
        font-family: var(--font-mono);
    }
    .compare__col-label { display: none; }

    .products { grid-template-columns: 1fr; }

    .trust-strip { grid-template-columns: 1fr; }
    .trust-strip__item {
        border-right: none;
        border-bottom: 1px solid var(--c-line-faint);
        padding: 16px 0;
    }
    .trust-strip__item:last-child { border-bottom: none; }

    .site-footer__row {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .site-footer__disclaimer { text-align: left; }
    .site-footer__links {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}
